package sunday.pojo.school;

import java.io.Serializable;

/**
 * 课程类
 * Created by yang on 2017/5/25.
 * At 12:28
 */
public final class Course implements Serializable{
    private Integer id;
    private Integer courseId;
    private String name;
    private Integer period;
    private Integer credit;

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", name='" + name + '\'' +
                ", period=" + period +
                ", credit=" + credit +
                '}';
    }

    public Course() {
    }

    public Course(Integer courseId, String name, Integer period, Integer credit) {

        this.courseId = courseId;
        this.name = name;
        this.period = period;
        this.credit = credit;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public Integer getCredit() {
        return credit;
    }

    public void setCredit(Integer credit) {
        this.credit = credit;
    }
}
